package com.shop.cereshop.app.dao.buyer;

import com.shop.cereshop.commons.domain.buyer.CereBuyerBank;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereBuyerBankDAO {
    int insert(CereBuyerBank record);

    int insertSelective(CereBuyerBank record);

    void update(CereBuyerBank bank);

    void delete(@Param("bankId") Long bankId);

    CereBuyerBank getById(@Param("bankId") Long bankId);

    List<CereBuyerBank> getAll(@Param("buyerUserId") Long buyerUserId);

    CereBuyerBank checkBank(@Param("buyerUserId") Long buyerUserId, @Param("bankCard") String bankCard, @Param("bankId") Long bankId);

    void updateBuyerData(@Param("buyerUserId") Long buyerUserId, @Param("id") Long id);
}